﻿using System;

namespace PoolKit.Commands
{
    internal abstract class ResourceCommand<TResource> : Command
        where TResource : class
    {
        protected ResourceCommand(TResource resource)
        {
            if (resource == null) throw new ArgumentNullException("resource");

            Resource = resource;
        }

        protected TResource Resource { get; private set; }
    }
}